package demo1;

import java.util.StringJoiner;

public class StringJoinerdemo  {
    public static void main(String[] args) {
        StringJoiner joiner = new StringJoiner(",","[","]");
        joiner.add("a").add("b").add("c").add("d");
        System.out.println(joiner.toString());
    }
}
